package com.iweb.entity;

import lombok.Data;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * @author jay
 * @description 订单实体类
 */
@Data
public class Order implements Serializable {
    /**
     * 主键
     */
    private Integer id;

    /**
     * 用户主键
     */
    private Integer userId;

    private String loginName;

    /**
     * 用户地址
     */
    private String userAddress;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 总消费
     */
    private Double cost;

    /**
     * 订单号
     */
    private String serialNumber;

    /**
     * 订单详情
     */
    private List<OrderDetail> orderDetailList = new ArrayList<>();

    private static final long serialVersionUID = 1L;
}